export function tenantKeyColumns() {
    return [
        {
            title: this.$t('module.tenantManage.tenantID'),
            key: 'tenantId',
            ellipsis: true,
            minWidth: 140
        },
        {
            title: this.$t('module.tenantManage.tenantName'),
            key: 'tenantName',
            ellipsis: true,
            minWidth: 140
        },
        {
            title: this.$t('module.tenantManage.secretKey'),
            key: 'signKey',
            ellipsis: true,
            minWidth: 140
        },
        {
            title: this.$t('module.tenantManage.encryptionType'),
            key: 'encryptionType',
            ellipsis: true,
            minWidth: 140
        },
        {
            title: this.$t('module.tenantManage.salt'),
            key: 'salt',
            ellipsis: true,
            minWidth: 140
        },
        {
            title: this.$t('module.tenantManage.updatTime'),
            key: 'updatTime',
            ellipsis: true,
            minWidth: 140
        },
        {
            title: this.$t('module.tenantManage.remark'),
            key: 'remark',
            ellipsis: true,
            minWidth: 140
        },
        {
            title: this.$t('common.operating'),
            align: 'center',
            fixed: 'right',
            width: 100,
            render: (h, params) => {
                return h('RowTools', {
                    props: {
                        data: [
                            {
                                type: 'icon',
                                icon: 'md-create',
                                text: this.$t('common.edit'),
                                handle: () => {
                                    this.editKey(params.row)
                                }
                            },
                            {
                                type: 'icon',
                                icon: 'ios-trash',
                                text: this.$t('common.delete'),
                                handle: () => {
                                  this._deleteKey(params.row)
                                }
                            },
                            {
                                type: 'icon',
                                icon: 'md-settings',
                                text: this.$t('common.config'),
                                handle: () => {
                                  this._config(params.row)
                                }
                            }
                        ]
                    }
                })
            }
        },
    ]
}